package quirk;

/**
 * Representation of an atom in QUIRK's grammar.
 * @author Andrew Bernard
 */
public abstract class Atom {
  private String atomValue;
  private int operator;
  
  public Atom(String value, int operator) {
    this.atomValue = value;
    this.operator = operator;
  }
  
  public abstract boolean evaluate(QueryWord[] mapping);
  
  protected String getAtomValue() {
    return atomValue;
  }
  
  protected int getOperator() {
    return operator;
  }
}
